package com.dragon.modules.yuegou.model.live;

import com.dragon.modules.yuegou.entity.live.BroadcastSpuEntity;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 商品直播间关系表模型类
 * 
 * @author ZSH
 * @date 2020-06-12 11:15:02
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class BroadcastSpu extends BroadcastSpuEntity {

	/**
	 * 构造一个空商品直播间关系表模型对象
	 */
	public BroadcastSpu(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个商品直播间关系表模型对象
	 * 
	 * @param entity 实体对象
	 */
	public BroadcastSpu(BroadcastSpuEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个商品直播间关系表模型对象
	 * 
	 * @param other 其它对象
	 */
	public BroadcastSpu(BroadcastSpu other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置Id
	 * 
	 * @param id Id
	 * @return 当前对象
	 */
    public BroadcastSpu id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getReviewId() {
    	return reviewId;
    }

    /**
	 * 设置审核商品Id
	 * 
	 * @param reviewId 审核商品Id
	 * @return 当前对象
	 */
    public BroadcastSpu reviewId(String reviewId) {
    	this.reviewId = reviewId;
    	return this;
    }

	@Override
	public String getBroadcastId() {
    	return broadcastId;
    }

    /**
	 * 设置直播间Id
	 * 
	 * @param broadcastId 直播间Id
	 * @return 当前对象
	 */
    public BroadcastSpu broadcastId(String broadcastId) {
    	this.broadcastId = broadcastId;
    	return this;
    }

	@Override
	public String getRoomId() {
    	return roomId;
    }

    /**
	 * 设置微信直播间id
	 * 
	 * @param roomId 微信直播间id
	 * @return 当前对象
	 */
    public BroadcastSpu roomId(String roomId) {
    	this.roomId = roomId;
    	return this;
    }
}
